package com.longway.core.toolbox.apidoc.models;

/**
 * @author ryc
 */
public class ApiMethodModel {
	
	private String actionKey;
	private String title;
	private String des;
	private String version;
	private ApiParamsModel paramsIn;
	private String paramsOut;
	private String requestMethod;
	
	public ApiMethodModel(String title, String des, String version ,String actionKey,String requestMethod) {
		super();
		this.title = title;
		this.des = des;
		this.version = version;
		this.actionKey = actionKey;
		this.requestMethod = requestMethod;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	public ApiParamsModel getParamsIn() {
		return paramsIn;
	}
	public void setParamsIn(ApiParamsModel paramsIn) {
		this.paramsIn = paramsIn;
	}
	public String getParamsOut() {
		return paramsOut;
	}
	public void setParamsOut(String paramsOut) {
		this.paramsOut = paramsOut;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	
	public String getActionKey() {
		return actionKey;
	}
	public void setActionKey(String actionKey) {
		this.actionKey = actionKey;
	}
	
	public String getRequestMethod() {
		return requestMethod;
	}
	public void setRequestMethod(String requestMethod) {
		this.requestMethod = requestMethod;
	}
	public ApiMethodModel addParamIn(ApiParamModel param){
		if(param != null){
			paramsIn.addApiParamModel(param);
		}
		return this;
	}
}
